﻿import request from '/@/utils/request';
enum Api {
    AddBusFileList = '/api/busFileList/add',
    DeleteBusFileList = '/api/busFileList/delete',
    UpdateBusFileList = '/api/busFileList/update',
    PageBusFileList = '/api/busFileList/page',
    GetSysClassDropdown = '/api/busFileList/SysClassDropdown',
    GetPKDataListDropdown = '/api/busFileList/FileFKList',
    UpLoadFileMethod = '/api/sysFile/UploadFileForFlag',
}

// 增加文件管理列表
export const addBusFileList = (params?: any) =>
    request({
        url: Api.AddBusFileList,
        method: 'post',
        data: params,
    });

// 删除文件管理列表
export const deleteBusFileList = (params?: any) =>
    request({
        url: Api.DeleteBusFileList,
        method: 'post',
        data: params,
    });

// 编辑文件管理列表
export const updateBusFileList = (params?: any) =>
    request({
        url: Api.UpdateBusFileList,
        method: 'post',
        data: params,
    });

// 分页查询文件管理列表
export const pageBusFileList = (params?: any) =>
    request({
        url: Api.PageBusFileList,
        method: 'post',
        data: params,
    });

export const getSysClassDropdown = () =>
    request({
        url: Api.GetSysClassDropdown,
        method: 'get'
    });
export const GetPKDataListDropdown = (params?: any) =>
    request({
        url: Api.GetPKDataListDropdown,
        method: 'get',
        data: params,
    });
export function UpLoadFileMethod(data?: any) {
    return request({
        url: Api.UpLoadFileMethod,
        method: 'POST',
        file:data
    })
}

